home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 2
/
Atari Mega Archive CD - Volume 2.iso
/
minix
/
up1510b.tgz
/
up1510b
/
src
/
commands
/
nroff
/
Makefile.bsd
< prev
next >
Wrap
Makefile
|
1990-07-19
|
1KB
|
61 lines
# makefile for nroff (BSD)
#
CFLAGS = -O
LDFLAGS =
SRCS = main.c command.c text.c io.c macros.c strings.c escape.c low.c
OBJS = main.o command.o text.o io.o macros.o strings.o escape.o low.o
LIBS =
TARGET = nroff
MANPAGE = nroff.1
MAN_MACRO = tmac.an
#MS_MACRO = tmac.s
#ME_MACRO = tmac.e
# set these as per your system (for install)
TMACDIR = /usr/local/lib/tmac
BINDIR = /usr/local/bin
MANDIR = /usr/local/man/man1
# main target
#
$(TARGET): $(OBJS)
$(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBS)
# install target
#
install: $(TARGET)
cp $(TARGET) $(BINDIR)/$(TARGET)
cp $(MANPAGE) $(MANDIR)/$(MANPAGE)
cp $(MAN_MACRO) $(TMACDIR)/$(MAN_MACRO)
# cp $(MS_MACRO) $(TMACDIR)/$(MS_MACRO)
# cp $(ME_MACRO) $(TMACDIR)/$(ME_MACRO)
clean:
/bin/rm -f $(OBJS)
clobber:
/bin/rm -f $(OBJS)
/bin/rm -f $(TARGET)
shar:
shar README MANIFEST Makefile Makefile.bsd nroff.1 tmac.an \
*.h >part01
shar main.c command.c text.c io.c >part02
shar escape.c low.c macros.c strings.c >part03
# dependencies
#
nroff.h: version.h
touch nroff.h
main.o: main.c nroff.h
command.o: command.c nroff.h
text.o: text.c nroff.h
io.o: io.c nroff.h
macros.o: macros.c nroff.h
strings.o: strings.c nroff.h
escape.o: escape.c nroff.h
low.o: low.c nroff.h